package cn.clq.ymcc.dto;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * @description: 创建课程订单相关的参数
 * @param: null
 * @return:
 * @author clqlongbao
 * @date: 2022/7/29 19:05
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class CourseOrderParamsDto {
    //课程ID
    @NotEmpty(message = "课程Id不能为空")
    private List<Long> courseIds;
    //支付方式  1：支付宝 2：银联 3：微信
    @NotNull(message = "请选择一种支付方式")
    private Integer payType;
    //下单防重复的token
    @NotEmpty(message = "token不能为空")
    private String token;
    //是否是秒杀下单  0普通订单   1秒杀下单
    @NotNull(message = "类型不能为空")
    private Integer type;

}
